package com.ganzi.ganziitem.conf;


import com.ganzi.ganziitem.rabbit.SendUtil;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.DisposableBean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.ExitCodeGenerator;
import org.springframework.stereotype.Component;

import javax.annotation.PreDestroy;


/**容器退出钩子*/
@Component
public class AplicationPreDestroy {
    private static Logger log = LoggerFactory.getLogger(AplicationPreDestroy.class);

    @PreDestroy
    public void destory() {
        log.info("应用被摧毁");
    }
}
